package com.jbit.examSystem.service.impl;

import com.jbit.examSystem.dao.ChapterDao;
import com.jbit.examSystem.pojo.Chapter;
import com.jbit.examSystem.service.ChapterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ChapterServiceImpl implements ChapterService {
    @Autowired
    private ChapterDao chapterDao;

    @Override
    public List<Chapter> getChapterByCourseId(Integer courseId) {
        List<Chapter> chapters = chapterDao.getChapterByCourseId(courseId);
        return chapters;
    }
}
